/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.execute.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.icinfo.framework.mybatis.mapper.annotation.Before;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 描述: 案件附件表-trj execute_appendix_record 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author framework generator
 * @date 2022年09月06日
 */
@Table(name = "execute.execute_appendix_record")
@Data
public class ExecuteAppendixRecord implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 裁执分离主键
     */
    @Column(name = "execute_id")
    private String executeId;

    /**
     * 裁执分离阶段名称
     */
    @Column(name = "execute_stage_name")
    private String executeStageName;

    /**
     * 裁执分离阶段编码
     */
    @Column(name = "execute_stage_code")
    private String executeStageCode;

    /**
     * 裁执分离环节名称
     */
    @Column(name = "execute_link_name")
    private String executeLinkName;

    /**
     * 裁执分离环节编码
     */
    @Column(name = "execute_link_code")
    private String executeLinkCode;

    /**
     * 附件类型id（数据字典ATTACHMENT_TYPE）
     */
    @Column(name = "appendix_type_id")
    private String appendixTypeId;
    /**
     * 附件类型
     */
    @Column(name = "appendix_type")
    private String appendixType;
    /**
     * 附件地址
     */
    @Column(name = "appendix_url")
    private String appendixUrl;

    /**
     * 上传人姓名
     */
    @Column(name = "upload_user_name")
    private String uploadUserName;

    /**
     * 上传人id
     */
    @Column(name = "upload_user_id")
    private String uploadUserId;

    /**
     * 上传时间
     */
    @Column(name = "upload_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date uploadTime;

    /**
     * 附件名称
     */
    @Column(name = "appendix_name")
    private String appendixName;

    /**
     * 关联文书目录编码
     */
    @Column(name = "document_catalog_code")
    private String documentCatalogCode;

    /**
     * 证据类型id(数据字典EVIDENCE_TYPE)
     */
    @Column(name = "evidence_type_id")
    private String evidenceTypeId;

    /**
     * 附件名称前缀
     */
    @Column(name = "appendix_name_prefix")
    private String appendixNamePrefix;

    /**
     * 附件名称后缀
     */
    @Column(name = "appendix_name_suffix")
    private String appendixNameSuffix;

    /**
     * 是否删除(0-否/1-是)
     */
    @Column(name = "is_delete")
    private String isDelete;

    /**
     * 案由表id
     */
    @Column(name = "case_reason_id")
    private String caseReasonId;

    /**
     * 当事人id
     */
    @Column(name = "party_id")
    private String partyId;

    /**
     * 附件状态 1-有效 3-撤回
     */
    @Column(name = "appendix_status")
    private String appendixStatus;

    private static final long serialVersionUID = 1L;



}